package com.ksyun.seckill;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 *  1.EnableAsync(proxyTargetClass=true)配置代理为cglib代理(默认使用的是jdk动态代理)
 *
 *
 * @author ksc
 */
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {"com.ksyun"})
@EnableAsync(proxyTargetClass = true)
@EnableRetry
@EnableAspectJAutoProxy(exposeProxy = true)
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);

    }

}